package com.intelligent.system.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("sys_role")
public class Role {
    @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;
    
    private String roleName;
    private String roleCode;
    private Integer roleSort;
    private Byte dataScope;
    private Byte status;
    private String remark;
    
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic(value = "0", delval = "2")
    private Byte isDelete;
} 